import 'package:flutter_shop/generated/json/base/json_convert_content.dart';
import 'package:flutter_shop/pages/cart/cart_cons.dart';

///订单确认表单
class OrderConfirmFormData with JsonConvert<OrderConfirmFormData> {
  ///姓名
  String name = "";

  ///手机号
  String phone = "";

  ///地址
  String address = "";

  ///预定时间
  String reserveTime = "";

  ///支付方式,见cart_cons.PAY_WAY_ARR
  String payWay = CartCons.PAY_WAY_ARR[0];

  String get payWayStr {
    if (payWay == CartCons.PAY_WAY_ARR[0]) {
      return "支付宝";
    } else if (payWay == CartCons.PAY_WAY_ARR[1]) {
      return "微信";
    } else {
      return "未知";
    }
  }
}
